<?php
include("configado.php");
include("authen.php");
//header("Content-type: text/html; charset=utf-8");
// Query from mySQL
$db = NewADOConnection(__DBTYPE__);
//$db1 = NewADOConnection(__DBTYPE__);
//$db->debug = true;
//$db1->debug = true;
$db->NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';

$db->Connect( __DBHOST__, __DBUSER__, __DBPASSWD__, __DBNAME__);
//$db1->Connect( __DBHOST1__, __DBUSER1__, __DBPASSWD1__, __DBNAME1__);

//$lastmonth = date("Ym",mktime(0, 0, 0, date("m")-2, date("d"),   date("Y")));//

//echo $lastmonth;

$db->Execute( 'set names utf8' );


//$db1->Execute( 'set names utf8' );
/*
$sql = "SELECT * FROM temp_urcode ";
$rs = $db->Execute($sql);
while($arr = $rs->FetchRow()){
	$urcode = $arr['urcode'];
	$location_id = $arr['location_id'];
	$sql = "insert into ";
}
$rs->close();
*/

?>